/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package graphics;

import tools.MessageManager;

/**
 *
 * @author Mattia
 */
public class Credits extends javax.swing.JDialog {

    /**
     * Creates new form Credits
     */
    public Credits(java.awt.Frame parent, boolean modal) {
        super(parent, modal);
        initComponents();
        this.setLocationRelativeTo(parent);
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        Layer = new javax.swing.JLayeredPane();
        Label_Title = new javax.swing.JLabel();
        Logo_Mattia = new javax.swing.JLabel();
        Logo_Amunaptra = new javax.swing.JLabel();
        Amunaptra_Desc = new javax.swing.JTextPane();
        Credits = new javax.swing.JLabel();
        Author_Luca = new javax.swing.JLabel();
        Author_Mattia = new javax.swing.JLabel();
        Author_Alessandro = new javax.swing.JLabel();
        Author_Marco = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("Amunaptra Credits");

        Layer.setBackground(new java.awt.Color(255, 255, 255));
        Layer.setOpaque(true);

        Label_Title.setFont(new java.awt.Font("Honest John's", 0, 24)); // NOI18N
        Label_Title.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        Label_Title.setText("Amunaptra");
        Label_Title.setBounds(10, 10, 240, 30);
        Layer.add(Label_Title, javax.swing.JLayeredPane.DEFAULT_LAYER);

        Logo_Mattia.setIcon(new javax.swing.ImageIcon(getClass().getResource("/graphics/image/LogoMattia.png"))); // NOI18N
        Logo_Mattia.setBounds(330, 0, 80, 80);
        Layer.add(Logo_Mattia, javax.swing.JLayeredPane.DEFAULT_LAYER);

        Logo_Amunaptra.setIcon(new javax.swing.ImageIcon(getClass().getResource("/graphics/image/Logo_v3_small.png"))); // NOI18N
        Logo_Amunaptra.setBounds(110, 50, 290, 140);
        Layer.add(Logo_Amunaptra, javax.swing.JLayeredPane.DEFAULT_LAYER);

        Amunaptra_Desc.setEditable(false);
        Amunaptra_Desc.setBackground(new java.awt.Color(240, 240, 240));
        Amunaptra_Desc.setFont(new java.awt.Font("Tahoma", 2, 11)); // NOI18N
        Amunaptra_Desc.setText("A Java tool allowing you to download and install the most recent versions of Firefox, Chromium, Urban Terror, Eclipse and other utilities, without worrying to do it manually.");
        Amunaptra_Desc.setOpaque(false);
        Amunaptra_Desc.setBounds(10, 40, 300, 50);
        Layer.add(Amunaptra_Desc, javax.swing.JLayeredPane.DEFAULT_LAYER);

        Credits.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        Credits.setText("Credits");
        Credits.setToolTipText("");
        Credits.setBounds(10, 90, 290, 17);
        Layer.add(Credits, javax.swing.JLayeredPane.DEFAULT_LAYER);

        Author_Luca.setText("Luca Battisti");
        Author_Luca.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                Author_LucaMouseClicked(evt);
            }
        });
        Author_Luca.setBounds(10, 170, 230, 14);
        Layer.add(Author_Luca, javax.swing.JLayeredPane.DEFAULT_LAYER);

        Author_Mattia.setFont(Author_Mattia.getFont());
        Author_Mattia.setText("Mattia Zago");
        Author_Mattia.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                Author_MattiaMouseClicked(evt);
            }
        });
        Author_Mattia.setBounds(10, 110, 230, 14);
        Layer.add(Author_Mattia, javax.swing.JLayeredPane.DEFAULT_LAYER);

        Author_Alessandro.setFont(Author_Alessandro.getFont());
        Author_Alessandro.setText("Alessandro Menti");
        Author_Alessandro.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                Author_AlessandroMouseClicked(evt);
            }
        });
        Author_Alessandro.setBounds(10, 130, 230, 14);
        Layer.add(Author_Alessandro, javax.swing.JLayeredPane.DEFAULT_LAYER);

        Author_Marco.setFont(Author_Marco.getFont());
        Author_Marco.setText("Marco Jerome Gasparrini");
        Author_Marco.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                Author_MarcoMouseClicked(evt);
            }
        });
        Author_Marco.setBounds(10, 150, 230, 14);
        Layer.add(Author_Marco, javax.swing.JLayeredPane.DEFAULT_LAYER);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(Layer, javax.swing.GroupLayout.DEFAULT_SIZE, 400, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(Layer, javax.swing.GroupLayout.DEFAULT_SIZE, 190, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void Author_MattiaMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_Author_MattiaMouseClicked
        MessageManager.browserNavigateTo("http://zagomattia.it/");
    }//GEN-LAST:event_Author_MattiaMouseClicked

    private void Author_AlessandroMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_Author_AlessandroMouseClicked
        MessageManager.browserNavigateTo("http://alessandromenti.it/");
    }//GEN-LAST:event_Author_AlessandroMouseClicked

    private void Author_MarcoMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_Author_MarcoMouseClicked
        MessageManager.browserNavigateTo("http://amunaptra.zagomattia.it/about.html");
    }//GEN-LAST:event_Author_MarcoMouseClicked

    private void Author_LucaMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_Author_LucaMouseClicked
        MessageManager.browserNavigateTo("http://amunaptra.zagomattia.it/about.html");
    }//GEN-LAST:event_Author_LucaMouseClicked

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(Credits.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(Credits.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(Credits.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(Credits.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the dialog */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                Credits dialog = new Credits(new javax.swing.JFrame(), true);
                dialog.addWindowListener(new java.awt.event.WindowAdapter() {
                    @Override
                    public void windowClosing(java.awt.event.WindowEvent e) {
                        System.exit(0);
                    }
                });
                dialog.setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JTextPane Amunaptra_Desc;
    private javax.swing.JLabel Author_Alessandro;
    private javax.swing.JLabel Author_Luca;
    private javax.swing.JLabel Author_Marco;
    private javax.swing.JLabel Author_Mattia;
    private javax.swing.JLabel Credits;
    private javax.swing.JLabel Label_Title;
    private javax.swing.JLayeredPane Layer;
    private javax.swing.JLabel Logo_Amunaptra;
    private javax.swing.JLabel Logo_Mattia;
    // End of variables declaration//GEN-END:variables
}
